LC_CMD_XLINE Home

LC_CMD_XLINE is a value for Command parameter of the lcWndExeCommand function. It starts interactive tool to add Construction Line objects into a drawing.
CmdParam parameter can have the following values to activate specific modes:

Prm Mode
0 Start command with previous mode
LC_XLINE_BASE Basepoint
LC_XLINE_ANG Angular lines (preset by LC_PROP_WND_XLINEANG)
LC_XLINE_SEP Separate 2-point lines.
LC_XLINE_RAY Select Ray
LC_XLINE_XLINE Select Xline

When the command is started, before specifying start point, user can change the mode by right click and then select mode from popup menu.


See Also

  Command interface


Code sample:
  // add parallel infinite lines (10 degrees slope)
  lcWndExeCommand( m_hLcWnd, LC_CMD_XLINE, LC_XLINE_XLINE );
  lcPropPutFloat( m_hLcWnd, LC_PROP_WND_XLINEANG, 10*LC_DEG_TO_RAD );
  lcWndExeCommand( m_hLcWnd, LC_CMD_XLINE, LC_XLINE_ANG );

  // add rays with one base point
  lcWndExeCommand( m_hLcWnd, LC_CMD_XLINE, LC_XLINE_RAY );
  lcWndExeCommand( m_hLcWnd, LC_CMD_XLINE, LC_XLINE_BASE );

  // add infinite lines, each is defined by 2 points
  lcWndExeCommand( m_hLcWnd, LC_CMD_XLINE, LC_XLINE_XLINE );
  lcWndExeCommand( m_hLcWnd, LC_CMD_XLINE, LC_XLINE_SEP );